home *** CD-ROM | disk | FTP | other *** search
/ NetNews Offline 2 / NetNews Offline Volume 2.iso / news / comp / lang / c-part1 / 1808 < prev    next >
Encoding:
Internet Message Format  |  1996-08-05  |  916 b 

  1. Path: news.intelenet.com!usenet
  2. From: james@superstore.com
  3. Newsgroups: comp.lang.c
  4. Subject: Re: What is '?' in C mean....????? - key.c (0/1)
  5. Date: Wed, 17 Jan 1996 01:05:23 GMT
  6. Organization: InteleNet Communications, Inc.
  7. Message-ID: <4dhj0j$bms@nikita.intelenet.net>
  8. References: <4cgsa8$bm2@wumpus.cc.uow.edu.au> <fcusack-0401961115540001@mudskipper.cac.psu.edu> <4ci5bb$8m4@www.gnofn.org> <4cvuk9$b18@osfa.aber.ac.uk> <1f7cc$15d10.235@kc.darknet.com>
  9. NNTP-Posting-Host: 205.162.86.151
  10. X-Newsreader: Forte Free Agent 1.0.82
  11.  
  12. drewman@darknet.com (The Drew Man (:|=) wrote:
  13.  
  14.  
  15. >>>I've been programming in standard C for 12 years, and
  16. >>>never saw THAT in the manuals.
  17. >>Maybe you should read them!
  18.  
  19. >Ohhhhhh, the DIS!
  20.  
  21. >-Drew (aka "Mr. Silly Pants")
  22.  
  23. there is an operator ?:
  24.  
  25. which works like this
  26.  
  27. exp1 ? exp2: exp3;
  28.  
  29. if exp1 is true then evaluate exp2 else evaluate exp3
  30.  
  31. i've sent some code that may help explain
  32.  
  33.  
  34.